package com.syh.jn.scm.infrastructure.repository.model.finance;

import com.syh.core.ddd.infrastructure.repository.model.SuperBusinessModel;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * 选择对账临时表（购物车）
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@Table(name = "T_FINANCE_STATEMENT_ACCOUNT_BILL_CART")
@EqualsAndHashCode(callSuper = true)
public class StatementAccountBillCartModel extends SuperBusinessModel {
  /**
   * 客户类型
   */
  @Column(name = "CUSTOMER_TYPE", columnDefinition = "smallint COMMENT '客户类型 0 上游 1 下游 2物流'")
  private Short customerType;
  /**
   * 客户id
   */
  @Column(name = "CUSTOMER_ID", columnDefinition = "bigint COMMENT '客户id'")
  private Long customerId;
  /**
   * 来源单类型 0 销售单 1 销售退货单 2采购单 3 采购退货单 4 费用单 5 收入单
   */
  @Column(name = "SOURCE_TYPE", columnDefinition = "smallint COMMENT '来源单类型 0 销售单 1 销售退货单 2采购单 3 采购退货单 4 费用单 5 收入单'")
  private Short sourceType;
  /**
   * 来源单号
   */
  @Column(name = "SOURCE_CODE", columnDefinition = "varchar(50) COMMENT '来源单号'")
  private String sourceCode;
  /**
   * 来源单id
   */
  @Column(name = "SOURCE_ID", columnDefinition = "bigint COMMENT '来源单id'")
  private Long sourceId;
  /**
   * 录单人id
   */
  @Column(name = "BROKERAGE_ID", columnDefinition = "bigint COMMENT '录单人id'")
  private Long brokerageId;
}
